<?php
declare (strict_types = 1);

namespace app\api\controller\yuql;

use app\logic\yuql\FieryLogic;
use think\Request;

class Fiery
{

    /**
     * yuql
     * 热门商品
     * @param Request $request
     * @return \think\response\Json
     * @throws \Exception
     */
    public function fieryGoods(Request $request){
        try {
            $params = $request->get();
            $result = FieryLogic::HaveSeenGoodsOrder($params);
            if (!$result) throw new \Exception('空');
            return writeJson(1001,$result,'热门商品展示');
        } catch (\Exception $e){
            return writeJson(1002,'',$e->getMessage());
        }
    }

}
